
<div class="header">

  <div class="dropdown pull-right">
    <button class="btn btn-primary dropdown-toggle bg-primary" type="button" id="nav_mdoc1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
      <span class="fa fa-list"></span>
    </button>
    <ul class="dropdown-menu" aria-labelledby="nav_mdoc1">
      {inc:"c_pub/mmenu"}
      <li><a href="{surl(0)}"><i class="fa fa-heart"></i> 文档首页</a></li>
      <li><a href="{surl(doc:0)}" target="_blank"><i class="fa fa-euro"></i> English</a></li>
      <li><a href="{=PATH_PROJ}" target="_blank"><i class="fa fa-home"></i> 总首页</a></li>
    </ul>
  </div>

  <div class="dropdown pull-left">
    <button class="btn btn-primary dropdown-toggle bg-primary" type="button" id="nav_msub2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
      {=$mcfgs['title']}
      <span class="caret"></span>
    </button>
    <ul class="dropdown-menu" aria-labelledby="nav_msub2">
      <?php
      if($this->mod=='uplog'){
      $cvs = tex_base::cutvers($cfgs,2,$key);
      foreach($cfgs as $k=>$v){ if(in_array($k,$cvs)){ 
      $imkv = $k=='readme' ? 'uplog' : "uplog-$k"; 
      $iver = is_numeric($v[0])?"ver:".str_replace('_','.',$k):''; 
      if(strpos($_cbase['run']['verkeys'],$k)) $v[0] = '…… ……';
      ?>
        <li><a {if ($this->key==$k)||($k=='readme'&&$this->key=='') }class="c00F"{/if} href="{surl($imkv)}">{=$iver} {=$v[0]}</a></li>
      <?php } } } else{ foreach($mcfgs['subs'] as $k=>$v){ ?>
        <li><a {if ($this->key==$k)||($k=='home'&&$this->key=='') }class="c00F"{/if} href='{surl("$this->mod".($k=="home"?"":"-$k"))}' {if in_array($k,$mcfgs['blanks'])}target='_blank'{/if}>{=$v}</a></li>
      <?php } } ?>
      {if $this->mod=='tpltag'}
        <li><a class="c666" href="{surl(tools)}" target="_blank">* 贴心工具</a></li>
        <li><a class="c666" href="{surl(doc:tester-hello)}" target="_blank">* hello模板示例</a></li>
        <li><a class="c666" href="{surl(doc:tester-step_imtpl)}" target="_blank">* 模板步步高</a></li>
        <li><a class="c666" href="{surl(doc:ctest)}"   target="_blank">* MVC ? 控制器-操作</a></li>
        <li><a class="c666" href="{surl(doc:umod)}"   target="_blank">* MKV - 模板数据展示</a></li>
      {/if}
    </ul>
  </div>

</div>

<div class="container pa10">
